package com.sgj.gulimall.auth.feign;

import com.sgj.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: Guoji Shen
 * @Date: 2021/9/3 9:23
 */
@FeignClient("gulimall-third-party")
public interface ThirdPartFeignService {

    /**
     * 发送短信验证码
     * @param phone
     * @param code
     * @param effectiveTime
     * @return
     */
    @GetMapping("/sms/sendCode")
    R sendSmsCode(@RequestParam("phone") String phone, @RequestParam("code") String code, @RequestParam("effectiveTime") String effectiveTime);
}